﻿using Wolfpack.Core.Configuration;
using Wolfpack.Core.Interfaces.Entities;
using Wolfpack.Core;

namespace Wolfpack.Contrib.Publishers.HipChat
{
    public class HipChatPublisherConfigurationDiscovery : PluginDiscoveryBase<HipChatPublisherConfig, HipChatPublisher>
    {
        protected override HipChatPublisherConfig GetConfiguration()
        {
            return new HipChatPublisherConfig
                       {
                           Enabled = true,
                           FriendlyId = "CHANGEME!",
                           From = "Wolfpack",
                           Room = "TODO: Set room name or id",
                           Token = "TODO: INSERT-YOUR-HIPCHAT-TOKEN-HERE, ADMIN OR STD"
                       };
        }

        protected override void Configure(ConfigurationEntry entry)
        {
            entry.Name = "HipChatPublisher";
            entry.Description = "This publisher will forward all notifications to a HipChat room.";
            entry.Tags.AddIfMissing(SpecialTags.PUBLISHER, "HipChat");

        }
    }
}